package com.taillive.commons;

import java.util.Random;

public class RandomUtils {
	private static Random r	=new Random();
	
	public static int random(){
		return r.nextInt(10000);
	}
	
	public static String getRandomString(){
		return MD5.encrypt(RandomUtils.random()+""+System.currentTimeMillis());
	}
	
	
	public static String getRandomString16(){
		String s = getRandomString();
		
		s = s.substring(8,24);
		return s;
	}
	
	public static void  main(String[] args){
		System.out.println(getRandomString16());
	}

}
